<div class="pageHeader">
  <form onsubmit="return navTabSearch(this);" action="#{$smarty.const.ACT}#/CoBook/customer_show/" method="post">
    <div class="searchBar">
      <table class="searchContent">
        <tr>
          <td><select class="combox" name="searchKeyword">
              <option value="name">名称</option>
              <option value="id">编号</option>
            </select></td>
          <td><input type="text" name="searchValue" /></td>       
          <td><ul>
              <li>
                <div class="buttonActive">
                  <div class="buttonContent">
                    <button type="submit">检索</button>
                  </div>
                </div>
              </li>
            </ul></td>
          <td></td>
        </tr>
      </table>
      <div class="subBar"></div>
    </div>
  </form>
</div>
<div class="pageContent">
  <div class="panelBar">
    <ul class="toolBar">
      <li><a class="add" href="#{$smarty.const.ACT}#/admin/CoBook/co_book_add/"  rel="co_book_add"  title="小说封面添加" target="navTab"><span>添加</span></a></li>
      <li class="line">line</li>
      <li><a class="delete" href="#{$smarty.const.ACT}#/admin/CoBook/co_book_del/" postType="string" title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" ><span>删除</span></a></li>
      <li class="line">line</li>
      <li><a class="edit" href="#{$smarty.const.ACT}#/admin/CoBook/co_book_modify/id/{sid_user}/" title="小说封面修改" rel="co_book_modify" target="navTab"><span>修改</span></a></li>
      <li class="line">line</li>
      <li><a class="task" href="#{$smarty.const.ACT}#/admin/CoBook/co_book_test/id/{sid_user}/" title="小说封面测试" rel="co_chap_test" target="dialog" width='800' height='500'><span>测试</span></a></li>
      <li class="line">line</li>
      <li><a class="import" href="#{$smarty.const.ACT}#/admin/CoBook/co_book_one_coll/" target="_blank"><span>采集</span></a></li>
      <li class="line">line</li>
    </ul>
  </div>
  <table class="table" width="100%" layoutH="138">
    <thead>
      <tr>
        <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
        <th width="50">编号</th>
        <th width="100">名称</th>
        <th width="100">采集网址</th>
        <th width="120">加入时间</th>
        <th width="120">最后更新时间</th>
        <th width="120">最后采集时间</th>
        <th width="120">需要采集/已采集/已入库(网址)</th>
        <th width="120">操作规则</th>
      </tr>
    </thead>
    <tbody>
    
    #{foreach from=$list key=k item=v}#
    <tr target="sid_user" rel="#{$v.id}#">
      <td><input name="ids" value="#{$v.id}#" type="checkbox"></td>
      <td>#{$v.id}#</td>
      <td>#{$v.name}#</td>
      <td>#{$v.listurl}#</td>
      <td>#{$v.adt}#</td>
      <td>#{$v.udt}#</td>
      <td>#{$v.cdt}#</td>
      <td>#{$v.cnt.a_cnt}#/#{$v.cnt.d_cnt}#/#{$v.cnt.i_cnt}#</td>
      <td>
      		<a href="#{$smarty.const.ACT}#/admin/CoBook/co_book_remove/id/#{$v.id}#/" target="ajaxTodo">[清空]</a>
      		<a href="#{$smarty.const.ACT}#/admin/CoBook/co_book_one_coll/sureid/#{$v.id}#/" target="_blank">[采集]</a>
      </td>
    </tr>
    #{/foreach}#
      </tbody>
    
  </table>
  <div class="panelBar">
    <form id="pagerForm" method="post" action="#{$smarty.const.ACT}#/CoBook/customer_show/">
      <input type="hidden" name="pageNum" value="1" />
      <input type="hidden" name="numPerPage" value="#{$numPerPage}#" />
      <input type="hidden" name="orderField" value="${param.orderField}" />
      
       <input type="hidden" name="trade_id" value="#{$trade}#" />
       <input type="hidden" name="trade_name" value="#{$trade_name}#" />
       <input type="hidden" name="bdt" value="#{$bdt}#" />
       <input type="hidden" name="edt" value="#{$edt}#" />
       <input type="hidden" name="bdt1" value="#{$bdt1}#" />
       <input type="hidden" name="edt1" value="#{$edt1}#" />
       <input type="hidden" name="bdt2" value="#{$bdt2}#" />
       <input type="hidden" name="edt2" value="#{$edt2}#" />
    </form>
    <div class="pages"> <span>显示</span>
      <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
        <option value="20" #{if $numPerPage eq '20'}# selected="selected" #{/if}#>20</option>
        <option value="50" #{if $numPerPage eq '50'}# selected="selected" #{/if}#>50</option>
        <option value="100" #{if $numPerPage eq '100'}# selected="selected" #{/if}#>100</option>
        <option value="200" #{if $numPerPage eq '200'}# selected="selected" #{/if}#>200</option>
        <option value="500" #{if $numPerPage eq '500'}# selected="selected" #{/if}#>500</option>
      </select>
      <span>条，共#{$totalCount}#条</span> </div>
    <div class="pagination" targetType="navTab" totalCount="#{$totalCount}#" numPerPage="#{$numPerPage}#" pageNumShown="10" currentPage="#{$currentPage}#"></div>
  </div>
</div>
